package signature

import (
	"time"
	"math/rand"
)

// 产生随机字符串
func GetNonceStr(n int) string {
	chars := []byte("abcdefghijklmnopqrstuvwxyz0123456789")
	value := []byte{}
	m := len(chars)
	r := rand.New(rand.NewSource(time.Now().UnixNano()))
	for i := 0; i < n; i++ {
		value = append(value, chars[r.Intn(m)])
	}
	return string(value)
}
